//
//  MSScanCodeView.h
//  PeopleForTheFirstMall
//
//  Created by iOS on 2019/9/3.
//  Copyright © 2019 MS. All rights reserved.
//
// 扫码
// 不需要额外进行设置frame 全屏

#import "MSView.h"

NS_ASSUME_NONNULL_BEGIN

@protocol MSScanCodeViewDelegate;
@interface MSScanCodeView : MSView

@property (nonatomic, weak) id<MSScanCodeViewDelegate> delegate;

/** 开始扫描 */
- (void)startRunning;

@end

@protocol MSScanCodeViewDelegate <NSObject>

@optional

/// 捕获扫描内容
/// @param scanCodeView 扫描视图
/// @param stringValue 扫描结果
- (void)scanCodeView:(MSScanCodeView *)scanCodeView
didOutputMetadataObject:(NSString *)stringValue;

@end

NS_ASSUME_NONNULL_END
